home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
- From: Dan Pop <danpop@mail.cern.ch>
- Newsgroups: comp.lang.c
- Subject: Re: C type question
- Date: Fri, 2 Feb 1996 13:28:20 +0100
- Organization: CERN European Lab for Particle Physics
- Message-ID: <9602021228.AA29867@dxmint.cern.ch>
- References: <Pine.SUN.3.91.960202131027.20090A-100000@sun19.cs.cuhk.hk>
- X-NNTP-Posting-Host: hpl3sn03.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
- X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch
-
- Cheung ming wai <mwcheung@cs.cuhk.hk> writes:
-
- >Do I get something wrong in the printf()?
- >What is the argument used for long double? %e? %g? %lf?
-
- Have you checked your book? What does it say?
-
- Mine (K&R2) says that there is no such thing as %lf (for printf) and
- that the correct conversion specifications for a long double are %Lf,
- %Le and %Lg (you can use %LG and %LE as well).
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-